/*
 * Copyright (c) Beicaizs.com Inc.
 * All Rights Reserved.
 */
package com.zlb.envmodify.example;

import java.util.LinkedList;
import java.util.List;

/**
 * @Description
 * @ClassName ChangeStaticMethodsExample
 * @Author zhuliangbing
 * @Date 2024/6/24 9:08
 * @Version 0.0.1
 */
public class ChangeStaticMethodsExample {

    public static List<Person> personList;

    public static void main(String[] args) {
        setPersonList();
        System.out.println(personList);
        System.out.println(Person.class.getName());
    }

    public static void setPersonList() {
        personList = new LinkedList<>();
        Person person1 = new Person();
        person1.name = "朱良兵";
        person1.age = 35;
        personList.add(person1);
    }

    public static class Person {
        private String name;

        private int age;

        @Override
        public String toString() {
            return "{" + "\"name\":" + name + ",\"age\":" + age + "}";
        }
    }

}
